package com.stedu.bean;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Owner {

    //住户id
    @ExcelProperty("主键")
    private Integer oid;
    //住户姓名
    @ExcelProperty("设备名称")
    @NotBlank(message = "设备名称为空")
    private String oname;
    //住户性别
    @ExcelProperty("状态")
    private String ogender;
    //用户电话
    @ColumnWidth(20)
    @ExcelProperty("设备编号")
    @NotBlank(message = "设备编号不能为空")
    private String ophone;
    //用户住址
    @ColumnWidth(50)
    @ExcelProperty("存放地址")
    @NotBlank(message = "存放地址为空")
    private String address;
}
